import pandas as pd
import Core.Label as Label
import Core.Gadget as Gadget
import numpy as np
import json
import Core.Algorithm as Algorithm
import Core.IO as IO
import datetime
import math
import statsmodels.api as sm
import matplotlib.pyplot as plt
import matplotlib.dates as mdate
import time
from WindPy import *
w.start()


a = w.wsd("000001.SZ", "open,high,low,close", "2018-07-07", "2018-08-05", "PriceAdj=F")
#价格序列
b = w.wset("seniorexecutiveholdchange","windcode=000001.SZ")
#高管增减持
c = w.wset("publicopinions","windcode=600000.SH;startdate=2018-07-15;enddate=2018-10-15")
#舆情:日期；舆情总量；负面舆情
detail = c.Data
debug = 1
symbol = a.Codes
print ("Times", a.Fields)
for i in range(len(a.Times)):
    print(a.Times[i],a.Data[0][i], a.Data[1][i], a.Data[2][i], a.Data[3][i])


#
# coding=utf-8



